package com.imchen.cms.cmscore.dao;

import com.imchen.cms.cmscore.model.Investment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface InvestmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Investment record);

    int insertSelective(Investment record);

    Investment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Investment record);

    int updateByPrimaryKey(Investment record);

    int deleteByPrimaryKeyLogic(@Param("id") Integer id, @Param("isDelete") Integer isDelete);

    List<Investment> selectInvestments(@Param("currentIndex") Integer currentIndex, @Param("pageSize") Integer pageSize);

    List<Investment> selectAllInvestments();

    List<Investment> selectByBetweenDate(Date startDate, Date endDate);
}